package com.eco.fanliapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2019-12-24
 */
@Data
@Getter
@Setter
@TableName("sy_user_integral")//@TableName中的值对应着表名
public class SyUserIntegral implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "table_id", type = IdType.AUTO)
    private Integer tableId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 积分总额
     */
    private Integer integralTotalAmount;

    /**
     * 积分冻结金额
     */
    private Integer integralFreezeAmount;

    /**
     * 积分剩余数量
     */
    private Integer integralBalanceAmount;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 是否启用 0否 1 是
     */
    private Integer enable;

    /**
     * 是否删除  0否 1 是
     */
    private Integer deleted;


}
